3.11 \(\int \sqrt {-1+\coth ^2(x)} \, dx\)

Optimal. Leaf size=14 \[ -\tanh ^{-1}\left (\frac {\coth (x)}{\sqrt {\text {csch}^2(x)}}\right ) \]

[Out]

-arctanh(coth(x)/(csch(x)^2)^(1/2))

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3657, 4122, 217, 206} \[ -\tanh ^{-1}\left (\frac {\coth (x)}{\sqrt {\text {csch}^2(x)}}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[-1 + Coth[x]^2],x]

[Out]

-ArcTanh[Coth[x]/Sqrt[Csch[x]^2]]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 3657

Int[(u_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*sec[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a, b]

Rule 4122

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[(b*ff)
/f, Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rubi steps

\begin {align*} \int \sqrt {-1+\coth ^2(x)} \, dx &=\int \sqrt {\text {csch}^2(x)} \, dx\\ &=-\operatorname {Subst}\left (\int \frac {1}{\sqrt {-1+x^2}} \, dx,x,\coth (x)\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\coth (x)}{\sqrt {\text {csch}^2(x)}}\right )\\ &=-\tanh ^{-1}\left (\frac {\coth (x)}{\sqrt {\text {csch}^2(x)}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 18, normalized size = 1.29 \[ \sinh (x) \sqrt {\text {csch}^2(x)} \log \left (\tanh \left (\frac {x}{2}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[-1 + Coth[x]^2],x]

[Out]

Sqrt[Csch[x]^2]*Log[Tanh[x/2]]*Sinh[x]

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 17, normalized size = 1.21 \[ -\log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+coth(x)^2)^(1/2),x, algorithm="fricas")

[Out]

-log(cosh(x) + sinh(x) + 1) + log(cosh(x) + sinh(x) - 1)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 23, normalized size = 1.64 \[ -{\left (\log \left (e^{x} + 1\right ) - \log \left ({\left | e^{x} - 1 \right |}\right )\right )} \mathrm {sgn}\left (e^{\left (2 \, x\right )} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+coth(x)^2)^(1/2),x, algorithm="giac")

[Out]

-(log(e^x + 1) - log(abs(e^x - 1)))*sgn(e^(2*x) - 1)

________________________________________________________________________________________

maple [A]  time = 0.14, size = 15, normalized size = 1.07 \[ -\ln \left (\coth \relax (x )+\sqrt {-1+\coth ^{2}\relax (x )}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-1+coth(x)^2)^(1/2),x)

[Out]

-ln(coth(x)+(-1+coth(x)^2)^(1/2))

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 17, normalized size = 1.21 \[ \log \left (e^{\left (-x\right )} + 1\right ) - \log \left (e^{\left (-x\right )} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+coth(x)^2)^(1/2),x, algorithm="maxima")

[Out]

log(e^(-x) + 1) - log(e^(-x) - 1)

________________________________________________________________________________________

mupad [B]  time = 1.37, size = 14, normalized size = 1.00 \[ -\ln \left (\mathrm {coth}\relax (x)+\sqrt {{\mathrm {coth}\relax (x)}^2-1}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((coth(x)^2 - 1)^(1/2),x)

[Out]

-log(coth(x) + (coth(x)^2 - 1)^(1/2))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {\coth ^{2}{\relax (x )} - 1}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+coth(x)**2)**(1/2),x)

[Out]

Integral(sqrt(coth(x)**2 - 1), x)

________________________________________________________________________________________